import request from '_c/utils/request'

//钱包数据
export function income(data) {
	return request({
		url: '/api/ag/app/total/income/days/detail',
		method: 'GET',
		params: data
	})
}
// 钱包变动记录
export function walletChangeList(query) {
	return request({
		url: '/api/ag/agent/wallet/change/list',
		method: 'get',
		params: query
	})
}

// 收益分析-选择月份汇总每日各钱包收益情况
export function incomeDaysDetail(query) {
	return request({
		url: '/api/ag/app/total/income/days/detail',
		method: 'get',
		params: query
	})
}

//耕耘签约
export function agentEsignOnLine(data) {
	return request({
		url: '/api/ag/agent/withdraw/detail/agentEsignOnLine',
		method: 'POST',
		data,
    noShowMsg:true
	})
}

export function withdraw(data) {
	return request({
		url: '/api/ag/agent/withdraw/detail/do',
		method: 'POST',
		data,
    noShowMsg:true
	})
}

// 提现到他人卡
export function otherSettleWithdraw(data) {
	return request({
		url: '/api/ag/agent/withdraw/detail/otherSettle/do',
		method: 'POST',
		data,
    noShowMsg:true
	})
}

/**
 * 提现记录
 */
export function rechargeList(data) {
	return request({
		url: '/app/api/user/withdraw/list',
		method: 'GET',
		params: data
	})
}

/**
 * 提现汇总
 */
export function withdrawSum(data) {
	return request({
		url: '/app/api/user/withdraw/sum',
		method: 'GET',
		params: data
	})
}

/**
 * 提现记录列表
 */
export function withdrawList(data) {
	return request({
		url: '/api/ag/agent/withdraw/detail/list',
		method: 'GET',
		params: data
	})
}
// 转账到资金池
export function walletMoveToCash(data) {
  return request({
    url: '/api/ag/agent/wallet/moveToCash ',
    method: 'post',
    data
  })
}
/**
 * 资金池转入记录
 */
export function cashpoolChangList(data) {
	return request({
		url: '/api/ag/agent/cashpool/change/list',
		method: 'GET',
		params: data
	})
}
// 查询详细
export function getInfo(id) {
    return request({
        url: '/api/ag/agent/wallet/change/' + id,
        method: 'get'
    })
}